-- GENERATED SPELL FOR [Rage Talon Dragon Guard] --


function spell0_10366(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10366', 562, 1)
end

function spell1_10366(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(15655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10366', 2257, 1)
end

function spell2_10366(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(16145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10366', 30302, 1)
end

function Sorts_10366(pUnit, Event)
local choix_sorts_10366 = math.random(0, 2)
if choix_sorts_10366 == 0 then
pUnit:RegisterEvent('spell0_10366', 1, 1)
end
if choix_sorts_10366 == 1 then
pUnit:RegisterEvent('spell1_10366', 1, 1)
end
if choix_sorts_10366 == 2 then
pUnit:RegisterEvent('spell2_10366', 1, 1)
end
end

function mob10366_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10366', math.random(1500, 3000), 1)
end

function mob10366_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10366_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10366_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10366, 1, 'mob10366_Action')
RegisterUnitEvent(10366, 2, 'mob10366_Leave')
RegisterUnitEvent(10366, 3, 'mob10366_Kill')
RegisterUnitEvent(10366, 4, 'mob10366_Die')
